//=============================================================================
#include "CApp.h"

//=============================================================================
void CApp::OnLoop() {
    //Calculate FPS
    CFPS::FPSControl.OnLoop();


    //--------------------------------------------------------------------------
    //Render Everything
    OnRender();

    //--------------------------------------------------------------------------
    char Buffer[255];
	sprintf(Buffer, "%s | FPS: %d", WCAPTION, CFPS::FPSControl.GetFPS());
    SDL_WM_SetCaption(Buffer, Buffer);
}

//==============================================================================
